<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>编辑学生数据</title>
</head>
<body>
<form action="save" method="post">
	<input type="hidden" name="id" value="${model.id}">
	<input type="hidden" name="password" value="${model.password}">
	<p>姓名：<input type="text" name="name" value="${model.name}"></p>
	<p>学号：<input type="text" name="stuNum" value="${model.stuNum}"></p>
	<p>性别：<input type="text" name="sex" value="${model.sex}"></p>
	<p>班级：
		<select name="tbClass.id">
			<c:forEach items="${bjs}" var="bj">
				<option value="${bj.id}" ${model.tbClass.id==bj.id?"selected='selected'":""}>${bj.name}</option>
			</c:forEach>
		</select>
	</p>
	<button type="submit">提交</button>&nbsp;&nbsp;&nbsp; <button type="reset">重置</button>
</form>
</body>
</html>